package c.h.a.n0;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.liuzh.deviceinfo.view.togglebuttongroup.button.CompoundToggleButton;

/* compiled from: CameraButton */
public class g extends CompoundToggleButton {
    public TextView d = ((TextView) findViewById(2131296730));
    public TextView e = ((TextView) findViewById(2131296834));
    public TextView f = ((TextView) findViewById(2131296570));
    public View g = findViewById(2131296445);
    public String h;

    public g(Context context) {
        super(context);
        LayoutInflater.from(context).inflate(2131492983, this, true);
    }

    public String getCameraId() {
        return this.h;
    }

    public void setCameraId(String str) {
        this.h = str;
    }

    public void setChecked(boolean z) {
        super.setChecked(z);
        if (z) {
            this.g.animate().alpha(1.0f).start();
        } else {
            this.g.animate().alpha(0.0f).start();
        }
    }

    public void setFlength(String str) {
        this.f.setText(str);
    }

    public void setMp(String str) {
        this.d.setText(str);
    }

    public void setResolution(String str) {
        this.e.setText(str);
    }
}
